package com.thread;


import com.sun.source.tree.NewArrayTree;

import java.lang.reflect.Member;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @Author weijingchen
 * @Date 2025/6/22 23:06
 * @Version 1.0.0
 */
public class Test03 {
    static Lock lock = new ReentrantLock();

    public static void main(String[] args) {
        lock.lock();
        System.out.println("需要锁住的代码");

        lock.unlock();
    }
}
